package com.hb.common.enums;

import lombok.Getter;

/**
 * 响应错误枚举
 *
 * @author hb
 * @date 2023/04/23
 */
@Getter
public enum ResponseErrorEnums implements StatusCode{
	SYSTEM_ERROR(1001,"系统异常"),
	BAD_REQUEST(1002,"错误的请求参数"),
	NOT_FOUND(1003,"找不到请求路径"),
	CONNECTION_ERROR(1004,"网络连接请求失败"),
	METHOD_NOT_ALLOWED(1005,"不合法的请求方式"),
	DATABASE_ERROR(1004,"数据库异常"),
	BOUND_STATEMENT_NOT_FOUNT(1006,"找不到方法"),
	REPEAT_REGISTER(1001,"重复注册"),
	NO_USER_EXIST(1002,"用户不存在"),
	INVALID_PASSWORD(1003,"密码错误"),
	NO_PERMISSION(1004,"非法请求"),
	SUCCESS_OPTION(1005,"操作成功"),
	NOT_MATCH(1007,"用户名和密码不匹配"),
	FAIL_GETDATA(1008,"获取信息失败"),
	BAD_REQUEST_TYPE(1009,"错误的请求类型"),
	REQUIRED_ERROR(1010,"有必填的参数未传入"),
	FAIL_OPTION(1011,"操作失败"),
	UNIQUE_ERROR(1012, "数据不唯一"),
	REPEAT_MOBILE(1014,"已存在此手机号"),
	REPEAT_EMAIL(1015,"已存在此邮箱地址"),
	NO_RECORD(1016,"没有查到相关记录"),
	LOGIN_SUCCESS(1017,"登陆成功"),
	LOGOUT_SUCCESS(1018,"已退出登录"),
	SENDEMAIL_SUCCESS(1019,"邮件已发送，请注意查收"),
	EDITPWD_SUCCESS(1020,"修改密码成功"),
	No_FileSELECT(1021,"未选择文件"),
	FILEUPLOAD_SUCCESS(1022,"上传成功"),
	NOLOGIN(1023,"未登陆"),
	ILLEGAL_ARGUMENT(1024,"参数不合法"),
	ERROR_IDCODE(1025,"验证码不正确"),
	CERT_ERROR(1026,"系统授权异常"),
	WORKFLOW_ERROR(1027, "流程异常"),
	LOG_SAVE_ERROR(1028,"日志记录错误"),
	FEIGN_EMPTY_ERROR(1029,"Feign未找到对应微服务"),
	DATASOURCE_ERROR(1030,"数据源异常"),
	SERVICE_INVOKE_ERROR(1031,"服务接口调用异常"),
	WEBSERVICE_PARSE_ERROR(1032,"Webservice接口解析异常"),
	BPM_PROCESS(1040,"流程定义异常，不允许有多个process"),
	DESENSITIZATION(1041,"表单数据脱敏设置异常"),
	TOO_MANY_RESULTS_EXCEPTION(1042,"期望返回一条(10条)数据"),
	MY_BATIS_SYSTEM_EXCEPTION(1043,"myBatis系统异常"),
	ACCESS_DENIED_EXCEPTION(403,"拒绝访问，请联系管理员"),
	EMPTY_FORM(1044,"表单未配置，请先配置表单");

	private int code;
	private String msg;

	private ResponseErrorEnums(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}
}
